﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopOrders.aspx.cs" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModule.master"
    Inherits="Medianamik.UI.Web.Shop.ShopOrders" %>
<%@ Import Namespace="Medianamik.Core"%>
<%@ Import Namespace="Medianamik.Core.Sugar" %>
<%@ Import Namespace="Telerik.Web.UI"%>

<%@ Register TagName="OrdersGrid" 
    Src="~/medianamik/shop/OrdersGrid.ascx" TagPrefix="uc" %>

    
<asp:Content ContentPlaceHolderID="ContextMenu" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="CenterContent" runat="server">
    <asp:Literal ID="Breadcrumbs" runat="server" />
    <asp:UpdatePanel ID="FiltersUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="BoiteRecherche">
                <fieldset>
                    <p class="ControlTailleVariable">
                        <label><%= "ClientName".Translate("Shop") %></label>
                        <asp:TextBox id="ClientNameTextBox" style="width:300px;" runat="server" CssClass="TxtBox"  />
                    </p>
                    <p class="ControlTailleVariable">
                        <label><%= "ClientEmail".Translate("Shop") %></label>
                        <asp:TextBox id="ClientEmailTextBox" style="width:300px;" runat="server" CssClass="TxtBox"  />
                    </p>
                    <p class="ControlTailleVariable">
                        <label><%= "ClientPhone".Translate("Shop") %></label>
                        <asp:TextBox id="ClientPhoneNumberTextBox" style="width:300px;" runat="server" CssClass="TxtBox"  />
                    </p>
                    
                    <div style="clear:left;"></div>
                    <p class="ControlTailleVariable">
                        <label><%= "TransactionId".Translate("Shop") %></label>
                        <asp:TextBox id="TransactionIdTextBox" style="width:300px;" runat="server" CssClass="TxtBox"  />
                    </p>
                    
                    <p class="ControlTailleVariable">
                        <label><%= "DateType".Translate("Shop") %></label>
                        <asp:DropDownList CssClass="SelectList" Width="300px" ID="DateTypeDropDownList" runat="server" 
                            DataTextField="Text" DataValueField="Value" />
                    </p>   
                    <div class="Date">
                        <label><%= "StartingDate".Translate("Shop") %></label>
                        <telerik:RadDatePicker ID="StartingDateTextBox" runat="server" />
                    </div>
                    <div class="Date">
                        <label><%= "EndingDate".Translate("Shop") %></label>
                        <telerik:RadDatePicker ID="EndingDateTextBox" runat="server" />
                    </div>
                    <div style="clear:left;"></div>
                    
                    
                    <p>
                        <label><%= "NodeState".Translate("Shop") %></label>
                        <asp:DropDownList CssClass="SelectList" Width="100px" ID="ContentStatesList" runat="server" 
                        DataTextField="Text" DataValueField="Value" />
                    </p>
                    <div style="clear:left;"></div>
                </fieldset>
                <asp:Button ID="FilterButton" runat="server" CssClass="Btn" Text="Rechercher" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc:OrdersGrid runat="server" ID="OrdersGrid" AllowPaging="true" />
    <br class="clearer" /> 
</asp:Content>

<asp:Content ID="ExternalContent" ContentPlaceHolderID="ExternalContentHolder" runat="server">
    <telerik:RadScriptBlock runat="server" ID="ScriptBlock">

        <script type="text/javascript">
            //<![CDATA[

            <%= Medianamik.UI.Utility.GetDeleteElementScript(RadAjaxManager.GetCurrent(Page).ClientID,
                Pages.DeleteElementWindow, CurrentEditionCulture.Name, 
                false, CurrentEditionCulture.Name == "") %>

            //]]>
        </script>

    </telerik:RadScriptBlock>
</asp:Content>